<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--通过model接口，请求作用域-->
<div th:text="${testRequestScopeForModel}">model</div>
<!--通过原生servlet api，请求作用域-->
<div th:text="${testRequestScope}">request</div>
<!--通过map接口，请求作用域-->
<div th:text="${testRequestScopeForMap}">map</div>
<!--通过ModelMap-->
<div th:text="${testRequestScopeForModelMap}">modelMap</div>
<!--会话作用域-->
<div th:text="${session.testSessionScope}">session</div>
<div th:text="${session.httpSession}">session注解</div>
<!--应用作用域-->
<div th:text="${application.testApplicationScope}">application</div>

<div th:text="${testModelAndView}">model and view</div>
</body>

</html>